package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfQuestionDao;
import com.wfcm.entity.WfQuestionEntity;
import com.wfcm.service.WfQuestionService;



@Service("wfQuestionService")
public class WfQuestionServiceImpl implements WfQuestionService {
	@Autowired
	private WfQuestionDao wfQuestionDao;
	
	@Override
	public WfQuestionEntity queryObject(Integer id){
		return wfQuestionDao.queryObject(id);
	}
	
	@Override
	public List<WfQuestionEntity> queryList(Map<String, Object> map){
		return wfQuestionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfQuestionDao.queryTotal(map);
	}
	
	@Override
	public void save(WfQuestionEntity wfQuestion){
		wfQuestionDao.save(wfQuestion);
	}
	
	@Override
	public void update(WfQuestionEntity wfQuestion){
		wfQuestionDao.update(wfQuestion);
	}
	
	@Override
	public void delete(Integer id){
		wfQuestionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfQuestionDao.deleteBatch(ids);
	}
	
}
